﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace FacialClub.Models.Entities
{
    /// <summary>
    /// AppointmentStatus
    /// </summary>
    [Bind(Include = "AppointmentStatus,IsActive,UserCreated,CreatedDate,UserModified,ModifiedDate")]
    [MetadataType(typeof (AppointmentStatusMetaData))]
    public partial class AppointmentStatus
    {
        #region Nested type: AppointmentStatusMetaData

        /// <summary>
        /// Appointment Status Meta Data for Validation
        /// </summary>
        [Bind(Exclude = "AppointmentStatusId")]
        public class AppointmentStatusMetaData
        {
            /// <summary>
            /// AppointmentStatusId
            /// </summary>
            [ScaffoldColumn(false)]
            public object AppointmentStatusId { get; set; }

            /// <summary>
            /// Appointment Status
            /// </summary>
            [Required(ErrorMessage = "Appointment Status is required")]
            [StringLength(160)]
            [DisplayName("Appointment Status")]
            public string AppointmentStatusName { get; set; }

            /// <summary>
            /// Status of the Appointment
            /// </summary>
            public bool IsActive { get; set; }

            /// <summary>
            /// User Created
            /// </summary>
            public DateTime UserCreated { get; set; }

            /// <summary>
            /// Creation Date
            /// </summary>
            public DateTime CreatedDate { get; set; }

            /// <summary>
            /// User Modified
            /// </summary>
            public DateTime UserModified { get; set; }

            /// <summary>
            /// Modified Date
            /// </summary>
            public DateTime ModifiedDate { get; set; }
        }

        #endregion
    }
}